package com.example.myapplication.model;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobDate;

public class Game extends BmobObject {

    // 运动类型常量(1 篮球，2 足球， 3 羽毛球)
    public static final int BASKETBALL = 1;
    public static final int FOOTBALL = 2;
    public static final int BADMINTON = 3;

    // 状态常量(0-已结束，1-报名中，2-已取消（发布者))
    public static final int STATUS_ENDED = 0;
    public static final int STATUS_REGISTERING = 1;
    public static final int STATUS_CANCELLED = 2;


    private User publisher; // 发布者
    private Integer sportType; // 球类类型, 1 篮球，2 足球， 3 羽毛球
    private String gameTitle; // 活动标题
    private BmobDate beginTime; // 活动开始时间
    private BmobDate endTime; // 活动结束时间
    private String location; // 活动地点
    private Boolean isFull;  // 是否已满，true-已满，false-未满
    private Integer maxParticipants; // 最大参与人数
    private Integer curParticipants; // 当前参与人数
    private String description; // 活动描述
    private Integer gameStatus; // 活动状态



    public User getPublisher() {
        return publisher;
    }

    public void setPublisher(User publisher) {
        this.publisher = publisher;
    }

    public Integer getSportType() {
        return sportType;
    }

    public void setSportType(Integer sportType) {
        this.sportType = sportType;
    }

    public String getGameTitle() {
        return gameTitle;
    }

    public void setGameTitle(String gameTitle) {
        this.gameTitle = gameTitle;
    }

    public BmobDate getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(BmobDate beginTime) {
        this.beginTime = beginTime;
    }

    public BmobDate getEndTime() {
        return endTime;
    }

    public void setEndTime(BmobDate endTime) {
        this.endTime = endTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Boolean getFull() {
        return isFull;
    }

    public void setFull(Boolean full) {
        isFull = full;
    }

    public Integer getMaxParticipants() {
        return maxParticipants;
    }


    public void setMaxParticipants(Integer maxParticipants) {
        this.maxParticipants = maxParticipants;
    }

    public Integer getCurrentParticipants() {
        return curParticipants;
    }

    public void setCurrentParticipants(Integer currentParticipants) {
        this.curParticipants = currentParticipants;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getGameStatus() {
        return gameStatus;
    }

    public void setGameStatus(Integer gameStatus) {
        this.gameStatus = gameStatus;
    }

}
